package com.sphd.emanu.adapter;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.sphd.emanu.R;
import com.sphd.emanu.pojo.DayDepositSale;
import com.wzutils.TimeUtils;

import java.util.List;

/**
 * @Author Hu
 * @Time 2017/4/24 --16:21.
 * @Email 87683202@qq.com
 */
public class TopUpMonthdapter extends BaseQuickAdapter<DayDepositSale,BaseViewHolder>{
    public TopUpMonthdapter(int layoutResId, List<DayDepositSale> data) {
        super(layoutResId, data);
    }

    @Override
    protected void convert(BaseViewHolder helper, DayDepositSale item) {
        helper
                .setText(R.id.item_time, TimeUtils.dateToString(item.getDate(),TimeUtils.YEAR_MONTH_DAY))
                .setText(R.id.item_no, "共计有"+item.getNumber()+"人充值")
                .setText(R.id.item_money, "￥"+item.getDepositSum());
    }
}
